/**
 * This file is used specifically and only for development. It installs
 * `electron-debug` & `vue-devtools`. There shouldn't be any need to
 *  modify this file, but it can be used to extend your development
 *  environment.
 */

/* eslint-disable */

// Install `electron-debug` with `devtron`
require('electron-debug')({showDevTools: true})
import {BrowserWindow} from 'electron';

// Install `vue-devtools`
require('electron').app.on('ready', () => {
    let installExtension = require('electron-devtools-installer')

    //参考 https://www.cnblogs.com/wozho/p/10782654.html 和 https://github.com/SimulatedGREG/electron-vue/issues/242

    //取消自动加载vue-devtools
    /*installExtension.default(installExtension.VUEJS_DEVTOOLS)
    .then(() => {})
    .catch(err => {
      console.log('Unable to install `vue-devtools`: \n', err)
    })*/
    //手动加载vue-devtools，前提下载vuetools: npm install vue-devtools --save-dev
    BrowserWindow.addDevToolsExtension('node_modules/vue-devtools/vender')

})

// Require `main` process to boot app
require('./index')